package com.itheima.grammar.scanner;

import java.util.Scanner;

/**
 * @author Anomaly
 * @date 2022/11/28 23:22
 */

/**
 * 键盘输入
 */
public class ScannerDemo {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("输入age：");
        int age = scanner.nextInt();
        System.out.println("age = " + age);
        System.out.println("输入name：");
        String name = scanner.next();
        System.out.println("name = " + name);
    }
}
